Layout of the file system:
- each physical drive can be divided into several partitions
- each partition can contain one file system
Each file system contains:
- boot block(s);
- superblock;
- inode list;
- data blocks.
A boot block may contain the bootstrap code that is read into the machine upon booting. A superblock describes the state of the file system:
- how large it is;
- how many files it can store;
- where to find free space on the file system;
- who has ownership of it;
- and more.
The inode list is an array of «Information nodes» analogous to the fat (file allocation table) system in ms-dos. Data blocks start at the end of the inode list and contain file data and directory blocks.
В Linux/Unix все является файлом, кроме потоков, процессов и ядраТакже, правильнее сказать, что все скорее является потоком байтов.